export interface AllData {
    code: number
    ok: string
    message: string
}

export interface User {
    id?: number
    createTime?: string
    updateTime?: string
    username?: string
    password?: string
    name?: string
    phone?: null
    roleName?: string
}

export interface UserData {
    records: User[]
    total: number
    size: number
    current: number
    pages: number
}

export interface ReturnUsers extends AllData {
    data: UserData
}

export interface Role {
    id: number
    createTime: string
    updateTime: string
    roleName: string
    remark: null
}

export interface ReturnRoles extends AllData {
    data: {
        allRolesList: Role[]
        assignRoles: Role[]
    }
}

export interface RoleInfo {
    roleIdList: number[]
    userId: number
}

export interface DeleteUser {
    idList: number[]
}
